﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace OAS.Core
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("Sys_Menu")]
    public partial class Menu
    {
           public Menu(){

            this.MenuId =Guid.NewGuid();

           }
           /// <summary>
           /// Desc:菜单id
           /// Default:newid()
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public Guid MenuId {get;set;}

           /// <summary>
           /// Desc:上级
           /// Default:
           /// Nullable:True
           /// </summary>           
           public Guid? ParentId {get;set;}

           /// <summary>
           /// Desc:菜单名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string MenuName {get;set;}

           /// <summary>
           /// Desc:路径
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string MenuPath {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Redirect {get;set;}

           /// <summary>
           /// Desc:图标
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Icon {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? AlwaysShow {get;set;}

           /// <summary>
           /// Desc:是否启用
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? HideClose {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Component {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? SortIndex {get;set;}

    }
}
